package com.hpjpw.ido.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hpjpw.ido.mapper.AnonymousThumbMapper;
import com.hpjpw.ido.domain.AnonymousThumb;
import com.hpjpw.ido.service.IAnonymousThumbService;

/**
 * 撕逼墙点赞Service业务层处理
 * 
 * @author hpj
 * @date 2021-01-02
 */
@Service
public class AnonymousThumbServiceImpl implements IAnonymousThumbService 
{
    @Autowired
    private AnonymousThumbMapper anonymousThumbMapper;

    /**
     * 查询撕逼墙点赞
     * 
     * @param id 撕逼墙点赞ID
     * @return 撕逼墙点赞
     */
    @Override
    public AnonymousThumb selectAnonymousThumbById(String id)
    {
        return anonymousThumbMapper.selectAnonymousThumbById(id);
    }

    /**
     * 查询撕逼墙点赞列表
     * 
     * @param anonymousThumb 撕逼墙点赞
     * @return 撕逼墙点赞
     */
    @Override
    public List<AnonymousThumb> selectAnonymousThumbList(AnonymousThumb anonymousThumb)
    {
        return anonymousThumbMapper.selectAnonymousThumbList(anonymousThumb);
    }

    /**
     * 新增撕逼墙点赞
     * 
     * @param anonymousThumb 撕逼墙点赞
     * @return 结果
     */
    @Override
    public int insertAnonymousThumb(AnonymousThumb anonymousThumb)
    {
        return anonymousThumbMapper.insertAnonymousThumb(anonymousThumb);
    }

    /**
     * 修改撕逼墙点赞
     * 
     * @param anonymousThumb 撕逼墙点赞
     * @return 结果
     */
    @Override
    public int updateAnonymousThumb(AnonymousThumb anonymousThumb)
    {
        return anonymousThumbMapper.updateAnonymousThumb(anonymousThumb);
    }

    /**
     * 批量删除撕逼墙点赞
     * 
     * @param ids 需要删除的撕逼墙点赞ID
     * @return 结果
     */
    @Override
    public int deleteAnonymousThumbByIds(String[] ids)
    {
        return anonymousThumbMapper.deleteAnonymousThumbByIds(ids);
    }

    /**
     * 删除撕逼墙点赞信息
     * 
     * @param id 撕逼墙点赞ID
     * @return 结果
     */
    @Override
    public int deleteAnonymousThumbById(String id)
    {
        return anonymousThumbMapper.deleteAnonymousThumbById(id);
    }
}
